package com.hyq.responsibility.demo;

/*
 * �۸����ˣ�������ͻ��ۿ�����
 */
public abstract class PriceHandler {
	
	/*
	 * 责任链模式核心之处
	 */
	protected PriceHandler successor;

	public void setSuccessor(PriceHandler successor) {
		this.successor = successor;
	}
	
	/*
	 * 折扣
	 */
	public abstract  void processDiscount(float discount);

}
